<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>@yield('title') | {{ config('site.base.name') }}</title>

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <!-- v4.1.3 -->
    <link rel="stylesheet" href="{{ asset('cetc/bootstrap/css/bootstrap.min.css')}}">

    <!-- Favicon -->
    <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('cetc/img/favicon-16x16.png')}}">

    <!-- Google Font -->
    <link href="{{asset('cetc/css/google/font.css')}}" rel="stylesheet">

    <!-- Theme style -->
    <link rel="stylesheet" href="{{ asset('cetc/css/style.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/font-awesome/css/font-awesome.min.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/et-line-font/et-line-font.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/themify-icons/themify-icons.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/simple-lineicon/simple-line-icons.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/skins/_all-skins.min.css')}}">
    <link rel="stylesheet" href="{{ asset('cetc/css/sweetalert.css')}}">

{{--    <link rel="stylesheet" href="{{ asset('adminlte/css/bootstrap.css')}}">
    <link rel="stylesheet" href="{{ asset('adminlte/css/font-awesome.css')}}">
    <link rel="stylesheet" href="{{ asset('adminlte/css/select2.min.css')}}">
    <link rel="stylesheet" href="{{ asset('adminlte/css/sweetalert.css')}}">
    <link rel="stylesheet" href="{{ asset('adminlte/css/AdminLTE.css')}}">
    <link rel="stylesheet" href="{{ asset('adminlte/css/skin-blue.css')}}">--}}


    <!-- dropify -->
    <link rel="stylesheet" href="{{ asset('cetc/plugins/dropify/dropify.min.css') }}">

    <!-- datetimepicker -->
    <link href="{{ asset('cetc/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css') }}" rel="stylesheet" media="screen">

    <!-- summernote -->
    <link rel="stylesheet" href="{{ asset('cetc/plugins/summernote/summernote-bs4.css') }}">
    <!-- chartjs-->
    <link rel="stylesheet" href="{{ asset('cetc/plugins/chartjs/chart.css') }}">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="{{ asset('cetc/js/html5shiv.min.js') }}"></script>
    <script src="{{ asset('cetc/js/respond.min.js') }}"></script>
    <![endif]-->
<style>
    /*
    .main-header {
        position: relative
    }

    .main-header .logo, .main-header .navbar {
        width: 100%;
        float: none
    }

    .main-header .navbar {
        margin: 0
    }

    .main-header .navbar-custom-menu {
        float: right
    }
    .navbar-custom-menu > .navbar-nav {
        float: none
    }
    .navbar-custom-menu > .navbar-nav > li {
        position: relative
    }

    .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        border: 0 !important;
    }
    .error-page {
        width: 600px;
        margin: 100px auto 0 auto
    }
    .error-page > .error-content {
        margin-left: 190px;
        display: block
    }
*/
    .content-wrapper, .main-footer {
        margin-left: 0px;
    }
</style>
    @section('style')
    @show
</head>
<body class="skin-blue sidebar-mini">
<div class="wrapper boxed-wrapper">
    <header class="main-header">
        <!-- Logo -->
        <a href="{{ route('family.home') }}" class="logo blue-bg">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><img src="{{ asset('cetc/img/logo-small.png') }}" alt=""></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><img src="{{ asset('cetc/img/logo.png') }}" alt=""></span> </a>
        <!-- Header Navbar -->
        @section('nav')
        <nav class="navbar blue-bg navbar-static-top">
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- User Account  -->
                    <li class="dropdown user user-menu p-ph-res">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="@if(!empty($currentUser)) {{ \App\Models\File::getFileUrl(asset('cetc/img/img1.jpg')) }} @else {{ asset('cetc/img/img1.jpg') }} @endif" class="user-image" alt="">
                            <span class="hidden-xs">
                                @if(!empty($currentUser->name))
                                    {{ $currentUser->name }}
                                @elseif(!empty($currentUser->phone))
                                    {{ $currentUser->phone }}
                                @else
                                    {{ __('Anonymous') }}
                                @endif
                            </span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <div class="pull-left user-img">
                                    <img src="@if(!empty($currentUser)) {{ \App\Models\File::getFileUrl(asset('cetc/img/img1.jpg')) }} @else {{ asset('cetc/img/img1.jpg') }} @endif" class="img-responsive img-circle" alt="">
                                </div>
                                <p class="text-left">
                                    @if(!empty($currentUser->name))
                                        {{ $currentUser->name }}
                                    @elseif(!empty($currentUser->phone))
                                        {{ $currentUser->phone }}
                                    @else
                                        {{ __('Anonymous') }}
                                    @endif
                                    <small></small>
                                </p>
                            </li>

                            <li><a href="{{ route('family.logout') }}"><i class="fa fa-power-off"></i>{{ __('Logout') }}</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        @show
    </header>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header sty-one">
            @section('breadcrumb')
                <ol class="breadcrumb">
                    <li><a href="{{ route('family.home') }}">{{__('Home')}}</a></li>
                </ol>
            @show
        </div>

        <!-- Main content -->
        <div class="content">
            @if(session()->has('success'))
                <div class="alert alert-success" role="alert">{{ session()->get('success') }}</div>
            @endif
            @if(session()->has('error'))
                <div class="alert alert-danger" role="alert">{{ session()->get('error') }}</div>
            @endif
            @section('content')
            @show
        </div>
        <!-- /.content -->
    </div>

    <!-- /.content-wrapper -->
    <footer class="main-footer">
        @section('footer')
            <div class="pull-right hidden-xs">Version 1.0</div>
            Copyright © 2018 - {{ date('Y') }} <a href="{{config('site.link')}}">{{config('site.author')}}</a> All rights reserved.
        @show
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane" id="control-sidebar-home-tab"></div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

@section('overlay')
@show

<!-- jQuery 3 -->
<script src="{{ asset('cetc/js/jquery.min.js')}}"></script>
<script src="{{ asset('cetc/plugins/popper/popper.min.js') }}"></script>

<!-- v4.0.0-alpha.6 -->
<script src="{{ asset('cetc/bootstrap/js/bootstrap.min.js')}}"></script>

<!-- template -->
<script src="{{ asset('cetc/js/bizadmin.js')}}"></script>

<!-- dropify -->
<script src="{{ asset('cetc/plugins/dropify/dropify.min.js') }}"></script>

<!-- summernote -->
<script src="{{ asset('cetc/plugins/summernote/summernote-bs4.js') }}"></script>
<script src="{{ asset('cetc/plugins/summernote/lang/summernote-zh-CN.js') }}"></script>

<script src="{{ asset('cetc/js/sweetalert.min.js')}}"></script>
<script src="{{ asset('js/spark-md5.min.js') }}"></script>
<script src="{{ asset('js/jquery.chunkupload.js') }}"></script>
<script src="{{ asset('js/jquery.showerrormsg.js') }}"></script>

<!-- datetimepicker -->
<script src="{{ asset('cetc/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js') }}" charset="UTF-8"></script>
<script src="{{ asset('cetc/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js') }}" charset="UTF-8"></script>

<!--momentjs-->
<script src="{{ asset('cetc/plugins/moment/moment-with-locales.js') }}" charset="UTF-8"></script>

<!--chartjs-->
<script src="{{ asset('cetc/plugins/chartjs/chart.js') }}" charset="UTF-8"></script>
<script src="{{ asset('cetc/plugins/chartjs/utils.js') }}" charset="UTF-8"></script>


<script type="text/javascript">
    !function () {
        $(function () {
            moment.locale('zh-cn');

            // 删除确认
            $('.confirm-delete').on('click', function () {
                var url = $(this).attr('href');
                if (url === '') {
                    return false;
                }

                swal({
                    title: "{{ __('Are you sure?') }}",
                    text: "{{ __('Are you sure to delete? Once deleted, it will be lost forever!') }}",
                    type: "warning",
                    showCancelButton: true,
                    confirmButtonText: "{{ __('Yes, delete it!') }}",
                    cancelButtonText: "{{ __('No, please cancel it!') }}"
                }, function (isConfirm) {
                    if (isConfirm) {
                        location.href = url;
                    }
                });

                return false;
            });
        });
    }(jQuery);
</script>

@section('script')
@show
</body>
</html>



